package com.ruoyi.nongjt.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 合格证打印对象 certificate_print
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class CertificatePrint extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 账号 */
    @Excel(name = "账号")
    private String account;

    /** 生产主体 */
    @Excel(name = "生产主体")
    private String productionEntity;

    /** 法人姓名 */
    @Excel(name = "法人姓名")
    private String legalPersonName;

    /** 省 */
    @Excel(name = "省")
    private String province;

    /** 市 */
    @Excel(name = "市")
    private String city;

    /** 区/县 */
    @Excel(name = "区/县")
    private String district;

    /** 镇/乡 */
    @Excel(name = "镇/乡")
    private String township;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String detailedAddress;

    /** 生产地址 */
    @Excel(name = "生产地址")
    private String productionAddress;

    /** 食用农产品名称 */
    @Excel(name = "食用农产品名称")
    private String productName;

    /** 重量(数量) */
    @Excel(name = "重量(数量)")
    private Double weight;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 合格方式 */
    @Excel(name = "合格方式")
    private String qualificationMethod;

    /** 检验机构 */
    @Excel(name = "检验机构")
    private String inspectionAgency;

    /** 检测报告 */
    private String inspectionReport;

    /** 开具日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "开具日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date issuanceDate;

    /** 合格证编号 */
    @Excel(name = "合格证编号")
    private String certificateNumber;

    /** 打印次数 */
    @Excel(name = "打印次数")
    private Integer printCount;

    /** 扫描次数 */
    @Excel(name = "扫描次数")
    private Integer scanCount;

    /** 数据来源 */
    @Excel(name = "数据来源")
    private String dataSource;

    /** 被扫查验 */
    @Excel(name = "被扫查验", readConverterExp = "0=否,1=是")
    private String scannedVerification;

    /** 删除标志 */
    private String delFlag;
}
